#ifndef CPUINFOBROWSER_H
#define CPUINFOBROWSER_H

#include <QNetworkReply>
#include <QWidget>

class Response;
class QListWidgetItem;
class CpuRankItem;

namespace Ui {
class CpuInfoBrowser;
}

class CpuInfoBrowser : public QWidget
{
    Q_OBJECT

public:
    explicit CpuInfoBrowser(QWidget *parent = nullptr);
    ~CpuInfoBrowser();

private slots:
    void load_cpu_rank_list();
//    void reply_cpu_rank_resp(Response resp);
//    void reply_cpu_rank_list_progress(const QVariantList &list);
//    std::pair<QListWidgetItem*, CpuRankItem*> reply_cpu_rank_list_item(const QVariantMap &map);
//    void reply_cpu_rank_list_item(std::pair<QListWidgetItem*, CpuRankItem*> item);
//    void reply_cpu_rank_list_item(QListWidgetItem *item, CpuRankItem *widget);
//    void reply_cpu_rank_list(const QVariantList &list);
//    void reply_cpu_rank_list(const QNetworkReply *reply);
    void cpu_search_slot(const QString &arg1);

private:
    Ui::CpuInfoBrowser *ui;

    QList<QString> m_cpuids;
};

#endif // CPUINFOBROWSER_H
